require"Person.rb"
class Booking
  
  def initialize(bookingId,date,time,duration,flightId,type,person,price)
    @id = bookingId
    @date = date
    @time = time
    @duration = duration
    @flightId = flightId 
    @type = type
    @person = person
    @price = price
   
  end
    
  def id
    @id
  end
  
  def date 
    @date
  end
  
  def time
    @time
  end
  
  def duration
    @duration
  end

  def flightId
    @flightId
  end
  
  def type
    @type
  end
    
  def person
    @person
  end
  
  def price
    @price
  end
  
  def to_s
      "[Booking: #{id} date #{date} time #{time} duration #{duration} flight id #{flightId} type #{type} person #{person.surName.strip} price € #{price}]"
  end
end